from collections import Counter


def check_list(list1, list2):
    return Counter(list1) == Counter(list2)


class TestCheckerException(Exception):
    def __init__(self, msg):
        self.msg = msg

    def __str__(self):
        return self.msg
